const studentModel = require("../models/studentModel");

module.exports = {
    async ShowAllStudents() {
        return await studentModel.find().exec()
    },
     //注册用户
     async AddStudent(username, age,gender,score,address) {
        return await studentModel.create({
            name: username,
            age,
            gender,
            score,
            address
        })
    },
}